<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    for(var i=1;i<=100;i++){
         document.write(i+"&nbsp;");
        if(i%10==0){
            document.write("<br/>");
        }
    }
</script>

</body>
</html>